// 定义医院列表相关的类型
export type Status = 0 | 1
export interface IhospitalItem {
  id: string
  createTime: string
  param: {
    hostypeString: string
    fullAddress: string
  }
  hosname: string
  logoData: string
  status: Status
}

// 医院详情页面涉及到的医院信息和医院列表中每一个医院对象信息很相似.所以使用接口继承,来继承我们不想再写一遍的属性
export interface IhospitalShow extends IhospitalItem {
  hoscode: string
  intro: string
  route: string
}

export type IhospitalList = IhospitalItem[]

export interface IhospitalListRes {
  content: IhospitalList
  totalElements: number
}

// 省,市,区响应数据对象类型
export interface IpcdItem {
  id: number
  name: string
  value: string
}

export type IpcdList = IpcdItem[]

// 医院详情相关的接口
export interface IbookingRule {
  cycle: number
  releaseTime: String
  stopTime: String
  quitTime: String
  rule: string[]
}
export interface IhospitalShowRes {
  bookingRule?: IbookingRule
  hospital?: IhospitalShow
}

// 科室数据接口
export type IdepList = IdepItem[]
export interface IdepItem {
  depcode: string
  depname: string
  children: IdepList
  disabled?: boolean
}

// 排班规则响应数据的类型
export interface IscheduleItem {
  workDate: string
  dayOfWeek: string
  reservedNumber: number
  availableNumber: number
}
export type IscheduleList = IscheduleItem[]
export interface IscheduleRes {
  total: number
  bookingScheduleList: IscheduleList
  baseMap: {
    hosname: string
  }
}

// 排班详情类型
export interface IscheduleDetail {
  id: string
  title: string
  skill: string
  workDate: string
  reservedNumber: number
  availableNumber: number
  amount: number
}

export type IscheduleDetailList = IscheduleDetail[]
